#include "CPolygon.h"
void CRectangle::setValues(int a, int b){
	width = a;
	height = b;
}
int CRectangle:: area(){
	return (width * height);
}
class CTriangle{
protected:
	int width, height;
public:
	void setValues(int a, int b);
	int area();
};
void CTriangle::setValues(int a, int b){
	width = a;
	height = b;
}
int CTriangle::area(){
	return (width * height / 2);
}
